package com.carleasoft.mps.cms.business.repairs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.cms.business.repairs.bean.entity.RepairsGroup;
import com.carleasoft.mps.cms.business.repairs.bean.entity.RepairsPerson;
import com.carleasoft.mps.cms.business.repairs.bean.po.RepairsGroupPageQueryPo;
import com.carleasoft.mps.cms.business.repairs.bean.po.SendPersonListPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @Description: 维修组管理
 * @Author: fan
 */
@Mapper
public interface RepairsGroupMapper extends BaseMapper<RepairsGroup> {
    /**
     * 维修组成员-分页
     */
    Page<RepairsGroup> pageQuery(Page page,@Param("po") RepairsGroupPageQueryPo repairsGroupPageQueryPo);
    List<RepairsGroup> list(@Param("param") RepairsGroup repairsGroup);
    /**
     * 维修组成员-详情
     */
    RepairsGroup detail(@Param("code") String code);
    /**
     * 网上报修派单人员查询
     */
    List<RepairsGroup> sendPersonList(@Param("list") List<String> codeList, @Param("po")SendPersonListPo sendPersonListPo);
    /**
     * 获取各专业的综合处理人
     */
    Integer synthesizePerson(@Param("userCode") String userCode,@Param("type")Integer type);
    /**
     * 添加班组校验
     */
    Integer checkAddRepairsGroup(@Param("type")String type,@Param("userCode") String userCode);
}
